import { exSelect } from '@ve/common/components/extension'
import { exInput } from '../../extension/index'
export default {
  VERSION: '20220408',
  type: 'uiAniSelect',
  name: '下拉框',
  icon: 'checkbox-blank-line',
  svg: 'xialaxuanze',
  //数据别名
  // dataName: 'uiFlexbox_data',
  //扩展
  extension: {
    requestSet: {
      type: 'exRequestSet',
      name: '接口配置',
      value: {
        api: '/wms/wms-web',
        method: 'wms.screen.query.test',
        getDataKey: 'wms.screen.query.test',
        fromValue: 'QTY',
        fromTitle: 'EDITWHO',
        isFrom: true,
        loopRequest: false,
        loopTime: 3000,
        nameKey: '',
        valueKey: '',
        busList: [],
        dataObj: {},
        data: [
          { key: '#LIMIT#', value: '1' },
          { key: '#PAGE_SIZE#', value: '10' },
        ],
        resList: [],
      },
    },
    data: {
      formData: {
        selectValue: '',
      },
    },
    defaultValue: exInput('默认值', ''),
    posi: exSelect('内容位置', 'flex-start', [
      {
        label: '左',
        value: 'flex-start',
      },
      {
        label: '中',
        value: 'center',
      },
      {
        label: '右',
        value: 'flex-end',
      },
    ]),
    topMargin: {
      type: 'exInputNumber',
      name: '上外边距',
      value: 0,
    },
    rightMargin: {
      type: 'exInputNumber',
      name: '右外边距',
      value: 0,
    },
    bottomMargin: {
      type: 'exInputNumber',
      name: '下外边距',
      value: 0,
    },
    leftMargin: {
      type: 'exInputNumber',
      name: '左外边距',
      value: 0,
    },
    width: exInput('卡片宽度', 250),
    height: exInput('卡片高度', 40),
    color: {
      type: 'exSetChartColor',
      name: '风格颜色',
      value: '#5cdbd9',
    },
    voxcolor: {
      type: 'exSetChartColor',
      name: '下拉框背景',
      value: '#000',
    },
    fontSize: {
      type: 'exInputNumber',
      name: '字体大小',
      value: 12,
    },
  },
  list: [],
  interaction: [],
}
